package rs.fon.is.music.services;

import java.net.URL;

import rs.fon.is.music.persistence.DataModelManager;
import rs.fon.is.music.util.Constants;

public class MusicGroupService {
	
	QueryExecutor executor = new QueryExecutor();
	
	public boolean doesMusicGroupExist(URL url){
		
		String query = "PREFIX schema:<"+Constants.SCHEMA+">" +
						"ASK "+
						"WHERE {"+
								"?thing schema:url <" + url + ">." +
								"}";

		return executor.executeAskSparqlQuery(query, DataModelManager.getInstance().getModel());
	}
	
	
	

}
